package main

import "fmt"

// 求切片的最大值
func getMax(arr []int) int {
	max := arr[0]
	for _, v := range arr {
		if max < v {
			max = v
		}
	}
	return max
}

func main() {
	s := []int{1, 2, 3, 4, 5, 6, 66, 7, 77}
	fmt.Println(getMax(s))
}
